package com.peixian.constant;

import java.text.MessageFormat;

/**
 * @author KwokChiKit
 * 示例:
 * String value = MessageFormat.format("oh, {0} is 'a' pig", "ZhangSan");
 * System.out.println(value);  // 输出：oh, ZhangSan is a pig
 */
public class LoginConstant {

    public static final String LOGIN_KEY = "peixian:login:key:{0}";


    public static String getLoginKey(String username) {
        return MessageFormat.format(LOGIN_KEY,username);
    }
}
